package top.xierongsheng.user.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.xierongsheng.user.dao.GoodsTypeMapper;
import top.xierongsheng.user.model.GoodsType;
import top.xierongsheng.user.service.IGoodsTypeService;

import java.util.HashMap;

/**
 * 服务接口实现类
 *
 * @auther 谢荣生
 * @datetime 2020/12/30 17:35
 */
@Service
public class GoodsTypeServiceImpl extends ServiceImpl<GoodsTypeMapper, GoodsType> implements IGoodsTypeService {

    @Autowired(required = false)
    private GoodsTypeMapper goodsTypeMapper;

    @Override
    public IPage<HashMap> getGoodsTypeListPage(Page<?> page, Integer status, String key) {
        return goodsTypeMapper.getGoodsTypeListPage(page, status,key);
    }

}
